package com.boodaba.todocarts.app;

public class StartupPresenter extends BasePresenter<IStartupActivity> {
	
	public void initializeWith(IStartupActivity activity) {
		super.initializeWith(activity);
	}

	public void checkAndUpdate() {
		int cv = getActivity().getCurrentVersion();
		int dv = getActivity().getDeclaredVersion();
		
		if (cv != dv) {
			getActivity().setCurrentVersion(dv);
		}
	}

	public void allDone() {
		getActivity().startMainUi();
		getActivity().exit();
	}
}
